package cn.edu.neusoft.maxingxin231.yuejian06.Model;

import java.util.List;

import cn.edu.neusoft.maxingxin231.yuejian06.Bean.ActivityBean;
import cn.edu.neusoft.maxingxin231.yuejian06.Bean.TrainBean;
import cn.edu.neusoft.maxingxin231.yuejian06.Iface.ActivityIface;
import cn.edu.neusoft.maxingxin231.yuejian06.Iface.TrainAllIface;
import cn.edu.neusoft.maxingxin231.yuejian06.Listener.ListListener;
import cn.edu.neusoft.maxingxin231.yuejian06.Service.LoginService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class ActivityModel extends RetrofitBaseModel implements ActivityIface<ActivityBean> {
    LoginService loginService;
    Retrofit retrofit;
    public ActivityModel(){
        retrofit=getRetrofit();
        loginService=getLoginService();
    }


    @Override
    public void getActivityList(ListListener<ActivityBean> listListener) {
        Call<List<ActivityBean>> call=loginService.showactivitylist();//showalllist的方法是获取列表换成入门的方法就获取到了入门的列表
        callenqueueList(call,listListener);
    }
}
